﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;


public partial class PageMethodtesting : System.Web.UI.Page
{
   
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    [System.Web.Services.WebMethod]
    public static string chek(string txt)
    {
        Datautility Du2 = new Datautility();
        string flag = "true";
        string str = "Select * from IVR_Item where itmId='" + txt.ToString() + "'";
        DataTable dt = Du2.getdata(str);
        if (dt.Rows.Count > 0)
        {
            flag = "false";
        }
        else
        {
            flag = "true";
        }
        return flag;
    }

}
